<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="css/element-ui.css">
    <script src="js/vue.js"></script>
    <script src="js/element-ui.js"></script>
    <style>
        .el-header, .el-footer {
          background-color: #B3C0D1;
          color: #333;
          text-align: center;
          line-height: 60px;
        }
        
        .el-aside {
          background-color: #D3DCE6;
          color: #333;
          line-height: 300px;
        }
        
        .el-main {
          background-color:white;
          color: #333;
          text-align: center;
          line-height: 40px;
        }
        
        body > .el-container {
          margin-bottom: 40px;
        }
        
        img{
            margin-top: 16px;
            height: 24px;
        }
      </style>
</head>
<body>
    <div id="app">
        <el-container>
            <!--表头-->
            <el-header style="background-color:#545c64;" >
                <div style="float: left;"> 
                    <img src="img/export.png"/>
                </div>
                <el-menu
                :default-active="activeIndex2"
                class="el-menu-demo"
                mode="horizontal"
                @select="handleSelect"
                background-color="#545c64"
                text-color="#fff"
                active-text-color="#ffd04b"
                style="float: right;">
                    <el-menu-item index="1">处理中心</el-menu-item>
                    <el-submenu index="2">
                        <template slot="title">我的工作台</template>
                        <el-menu-item index="2-1">选项1</el-menu-item>
                        <el-menu-item index="2-2">选项2</el-menu-item>
                        <el-menu-item index="2-3">选项3</el-menu-item>
                    </el-submenu>
                    <el-menu-item index="3">
                        <a href="#" target="_blank">首页</a>
                    </el-menu-item>
                </el-menu>
            </el-header>
            
            <el-container style="height: 600px; border: 1px solid #eee">
                <!--侧边导航栏-->
                <el-aside width="200px" style="background-color:white;">
                    <el-row class="tac">
                        <el-col>
                            <el-menu
                                default-active="2"
                                class="el-menu-vertical-demo"
                                @open="handleOpen"
                                @close="handleClose">
                                <el-submenu index="1">
                                    <template slot="title">
                                        <i class="el-icon-location"></i>
                                        <span>学工部</span>
                                    </template>
                                    <el-menu-item-group>
                                        <el-menu-item index="1-1"><i class="el-icon-s-help"></i>在校学生管理</el-menu-item>
                                        <el-menu-item index="1-2"><i class="el-icon-s-help"></i>学生升级/留级</el-menu-item>
                                        <el-menu-item index="1-3"><i class="el-icon-s-help"></i>学生就业情况</el-menu-item>
                                    </el-menu-item-group>
                                </el-submenu>
                                <el-submenu index="2">
                                    <template slot="title">
                                        <i class="el-icon-location"></i>
                                        <span>咨询部</span>
                                    </template>
                                    <el-menu-item-group>
                                        <el-menu-item index="2-1"><i class="el-icon-s-help"></i>意向学生管理</el-menu-item>
                                        <el-menu-item index="2-2"><i class="el-icon-s-help"></i>未报名学生管理</el-menu-item>
                                        <el-menu-item index="2-3"><i class="el-icon-s-help"></i>已报名学生管理</el-menu-item>
                                    </el-menu-item-group>
                                </el-submenu>
                                <el-submenu index="3">
                                    <template slot="title">
                                        <i class="el-icon-location"></i>
                                        <span>教研部</span>
                                    </template>
                                    <el-menu-item-group>
                                        <el-menu-item index="2-1"><i class="el-icon-s-help"></i>已有课程管理</el-menu-item>
                                        <el-menu-item index="2-2"><i class="el-icon-s-help"></i>正在研发课程管理</el-menu-item>
                                        <el-menu-item index="2-3"><i class="el-icon-s-help"></i>新技术课程管理</el-menu-item>
                                    </el-menu-item-group>
                                </el-submenu>
                            </el-menu>
                        </el-col>
                    </el-row>
                </el-aside>

                <el-container>
                    <el-main>
                        <el-row>
                            <el-col :span="2"><div class="grid-content bg-purple-dark"><span style="color: red;"><b>学生列表</b></span></div></el-col>
                            <el-col :span="20"><div class="grid-content bg-purple-dark">&nbsp;</div></el-col>
                            <el-col :span="2"><div class="grid-content bg-purple-dark">
                                <el-button type="primary" size="small">添加学生</el-button>
                            </div></el-col>
                        </el-row>
                        <el-table
                            :data="tableData"
                            style="height: 100%; width: 100%">
                            <el-table-column
                            prop="date"
                            label="日期"
                            width="180">
                            </el-table-column>
                            <el-table-column
                            prop="name"
                            label="姓名"
                            width="180">
                            </el-table-column>
                            <el-table-column
                            prop="address"
                            label="地址">
                            </el-table-column>
                            <el-table-column
                                fixed="right"
                                label="操作"
                                width="180">
                                <template slot-scope="scope">
                                    <el-button type="warning" size="small">查看</el-button>
                                    <el-button type="danger" size="small">删除</el-button>
                                </template>
                            </el-table-column>
                        </el-table>
                    </el-main>
                </el-container>
            </el-container>
        </el-container>
    </div>

    <script>
        new Vue({
            el:"#app",
            data:{
                tableData: [{
                    date: '2016-05-02',
                    name: '王小虎',
                    address: '上海市普陀区金沙江路 1518 弄'
                    }, {
                        date: '2016-05-04',
                        name: '王小虎',
                        address: '上海市普陀区金沙江路 1517 弄'
                    }, {
                        date: '2016-05-01',
                        name: '王小虎',
                        address: '上海市普陀区金沙江路 1519 弄'
                    }, {
                        date: '2016-05-03',
                        name: '王小虎',
                        address: '上海市普陀区金沙江路 1516 弄'
                    }
                ]
            },
            methods:{
                handleSelect:function(key, keyPath) {
                    console.log(key, keyPath);
                }
            }
        })
    </script>
</body>
</html>